@page "/admin/"
@inject HttpClient _http
@inject IStringLocalizer<Resource> _localizer
<PageTitle Title="@_localizer["dashboard"]" />

<div class="container">
    <div class="dashboard row no-gutters">
        <div class="col-md-6">
            <div class="row">
                <div class="col-6">
                    <a class="dash-widget dash-link dash-btn d-flex justify-content-center align-items-center" href="/admin/editor/">
                        <svg xmlns="http://www.w3.org/2000/svg" width="22" height="24" fill="currentColor" class="me-3 bi bi-pencil-fill" viewBox="0 0 16 16">
                            <path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
                        </svg>
                        <span class="dash-btn-name">@_localizer["new-post"]</span>
                    </a>
                </div>
                <div class="col-6">
                    <a class="dash-widget dash-link dash-btn d-flex justify-content-center align-items-center" href="/admin/pages/editor/">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="me-3 bi" viewBox="0 0 24 24">
                            <path d="M3 12C3 10.8954 3.89543 10 5 10H19C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14H5C3.89543 14 3 13.1046 3 12Z" />
                            <path d="M12 3C13.1046 3 14 3.89543 14 5L14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19L10 5C10 3.89543 10.8954 3 12 3Z" />
                        </svg>
                        <span class="dash-btn-name">@_localizer["new-page"]</span>
                    </a>
                </div>
            </div>
            <TotalsComponent />
        </div>
        <div class="col-md-6">
            <AnalyticsComponent />
        </div>
    </div>
</div>
